<?php
namespace app\model;

class KmCode extends Base {
    protected $resultSetType = 'collection';

    public function getStatusTextAttr($value, $data) {
        $status = ['1' => '已分配', '2' => '未分配'];
        return isset($status[$data['status']])?$status[$data['status']]:'未知';
    }
}
